package com.example.springbootbabyu.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;

@AiService(wiringMode = AiServiceWiringMode.EXPLICIT, streamingChatModel = "openAiStreamingChatModel", chatMemoryProvider = "chatMemoryProvider")
public interface Agent {
    @SystemMessage("你是一名贝优孕婴童商城的智能客服，今天是{{current_date}}，现在请服务用户并友好交流。")
    Flux<String> chat(@MemoryId String memoryId, @UserMessage String message);
}
